package top.go2do.homeGoods.exception;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/6/18 11:21
 */
public enum GoodsErrorCode {
    GOODS_NAME_EXIST(3401, "goods.name_exist"),
    GOODS_ID_NOT_EXIST(3402, "goods.id_not_exist"),

    ;

    private final int code;
    private final String msgKey;

    GoodsErrorCode(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }
}
